Compare commits
3 Commits
6187bf360e
...
27cbb5d8cf
Author | SHA1 | Date |
---|---|---|
aslan | 27cbb5d8cf | |
aslan | 858492cd2e | |
aslan | f5638722a6 |
|
@ -28,7 +28,7 @@ class DirectionController extends Controller
|
|||
{
|
||||
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
$directions = Direction::all();
|
||||
$directions = Direction::all()->sortBy('created_at', SORT_REGULAR, true);
|
||||
return view('admin.catalog.direction.index', compact('directions'));
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ return new class extends Migration
|
|||
{
|
||||
Schema::create('directions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 255)->unique();
|
||||
$table->string('name', 255);
|
||||
$table->string('full_name', 255);
|
||||
$table->text('description')->nullable();
|
||||
$table->string('code', 255);
|
||||
|
@ -22,7 +22,7 @@ return new class extends Migration
|
|||
$table->smallInteger('budget_places');
|
||||
$table->smallInteger('quota');
|
||||
$table->smallInteger('paid_places');
|
||||
$table->smallInteger('cost_paid_place');
|
||||
$table->integer('cost_paid_place');
|
||||
$table->float('period');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue