updates
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class AboutPageController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class BlogPageController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CareerPageController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
@@ -2,9 +2,27 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\ContactUs;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ContactPageController extends Controller
|
||||
{
|
||||
//
|
||||
public function index() {}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'phone' => ['required', 'numeric'],
|
||||
'company_name' => ['nullable', 'string', 'max:255'],
|
||||
'email' => ['nullable', 'string', 'email', 'max:255'],
|
||||
'message' => ['required', 'string'],
|
||||
]);
|
||||
|
||||
ContactUs::create($data);
|
||||
|
||||
return back()
|
||||
->with('message', 'Habarlaşanyňyz üçin sag boluň! Gysga wagtda siziň bilen habarlaşarys.')
|
||||
->withFragment('#contact-us-form');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\ContactUs;
|
||||
|
||||
class HomePageController extends Controller
|
||||
{
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class TeamPageController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class WhyusPageController extends Controller
|
||||
{
|
||||
//
|
||||
|
||||
BIN
app/Models/.DS_Store
vendored
Normal file
BIN
app/Models/.DS_Store
vendored
Normal file
Binary file not shown.
10
app/Models/ContactUs.php
Normal file
10
app/Models/ContactUs.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ContactUs extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -19,6 +20,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
Model::unguard();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user