Skip to content

Commit

Permalink
Merge pull request nWidart#1899 from solomon-ochepa/patch-58
Browse files Browse the repository at this point in the history
Update controller.stub
  • Loading branch information
dcblogdev authored Aug 12, 2024
2 parents fb6dbc5 + 3cfcb88 commit d045388
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 48 deletions.
6 changes: 2 additions & 4 deletions src/Commands/stubs/controller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace $CLASS_NAMESPACE$;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class $CLASS$ extends Controller
{
Expand All @@ -28,7 +26,7 @@ class $CLASS$ extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class $CLASS$ extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class MyController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class MyController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class MyController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class MyController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class MyController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class MyController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class MyController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class MyController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class MyController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class MyController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class MyController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class MyController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class MyController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class MyController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class MyController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class PostController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class PostController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class PostController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class PostController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class PostController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class PostController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class PostController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class PostController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class PostController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class BlogController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class BlogController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class BlogController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class BlogController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class BlogController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class BlogController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Modules\Blog\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class BlogController extends Controller
{
Expand All @@ -28,7 +26,7 @@ class BlogController extends Controller
/**
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
public function store(Request $request)
{
//
}
Expand All @@ -52,7 +50,7 @@ class BlogController extends Controller
/**
* Update the specified resource in storage.
*/
public function update(Request $request, $id): RedirectResponse
public function update(Request $request, $id)
{
//
}
Expand Down

0 comments on commit d045388

Please sign in to comment.